import request from '@/utils/request'

export default {
  saveOrUpdateVideoInfo(videoInfo) {
    return request({
      url: `/admin/edu/video/save`,
      method: 'post',
      data: videoInfo
    })
  },

  getVideoInfoById(id) {
    return request({
      url: `/admin/edu/video/get/${id}`,
      method: 'get'
    })
  },

  removeById(id) {
    return request({
      url: `/admin/edu/video/remove`,
      method: 'delete',
      params: { id: id }
    })
  }
}
